package com.edu.networkexperimentation.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName process
 */
@TableName(value ="process")
@Data
public class Process implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long paperid;

    /**
     * 
     */
    private String maxfitness;

    /**
     * 
     */
    private String averagefitness;

    /**
     * 
     */
    private Integer type;

    /**
     * 
     */
    private Integer isdetete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Process other = (Process) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPaperid() == null ? other.getPaperid() == null : this.getPaperid().equals(other.getPaperid()))
            && (this.getMaxfitness() == null ? other.getMaxfitness() == null : this.getMaxfitness().equals(other.getMaxfitness()))
            && (this.getAveragefitness() == null ? other.getAveragefitness() == null : this.getAveragefitness().equals(other.getAveragefitness()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getIsdetete() == null ? other.getIsdetete() == null : this.getIsdetete().equals(other.getIsdetete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPaperid() == null) ? 0 : getPaperid().hashCode());
        result = prime * result + ((getMaxfitness() == null) ? 0 : getMaxfitness().hashCode());
        result = prime * result + ((getAveragefitness() == null) ? 0 : getAveragefitness().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getIsdetete() == null) ? 0 : getIsdetete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", paperid=").append(paperid);
        sb.append(", maxfitness=").append(maxfitness);
        sb.append(", averagefitness=").append(averagefitness);
        sb.append(", type=").append(type);
        sb.append(", isdetete=").append(isdetete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}